package com.xhb.dubbo.controller;

import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.xhb.dubbo.api.UserService;
import com.xhb.dubbo.entity.User;


@Controller
public class UserController {

	@Reference
	private UserService userService;
	
	@ResponseBody
	@RequestMapping(value="/showUserInfo")
	public String showUserInfo(User user){
		return userService.showUserName(user);
	}
}
